package spring4;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpringAOPDemo {
	public static void main(String[] args) {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
				"spring4/applicationContext.xml");
		IHello hello = (IHello) context.getBean("helloSpeaker");
		//hello.hello("zhangsan");
		//hello.hello2("lisi");
		
		//引介增强
		IDeclareParent iDeclareParent = (IDeclareParent) hello;
        iDeclareParent.newMethod();

	}
}
